<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.6.1" />

	<title>Class Format</title>

	<script type="text/javascript" src="resources/combined.js?144019575"></script>
	<script type="text/javascript" src="elementlist.js?2260620923"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?1532301413" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-CodeIgniter.html">CodeIgniter<span></span></a>
						<ul>
				<li><a href="package-CodeIgniter.Libraries.html">Libraries</a>
						</li>
							</ul></li>
				<li class="active"><a href="package-None.html">None</a>
						</li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-CargaMenu.html">CargaMenu</a></li>
				<li><a href="class-Configuracion.html">Configuracion</a></li>
				<li><a href="class-Cuenta.html">Cuenta</a></li>
				<li><a href="class-DatosPersonales.html">DatosPersonales</a></li>
				<li><a href="class-Deposito.html">Deposito</a></li>
				<li class="active"><a href="class-Format.html">Format</a></li>
				<li><a href="class-FPDF.html">FPDF</a></li>
				<li><a href="class-hacerTransferencia.html">hacerTransferencia</a></li>
				<li><a href="class-Hipoteca.html">Hipoteca</a></li>
				<li><a href="class-Home.html">Home</a></li>
				<li><a href="class-Inversiones.html">Inversiones</a></li>
				<li><a href="class-Login.html">Login</a></li>
				<li><a href="class-Macciones.html">Macciones</a></li>
				<li><a href="class-Mconfiguracion.html">Mconfiguracion</a></li>
				<li><a href="class-Mcuenta.html">Mcuenta</a></li>
				<li><a href="class-Mdatospersonales.html">Mdatospersonales</a></li>
				<li><a href="class-Mdeposito.html">Mdeposito</a></li>
				<li><a href="class-mHacerTransferencia.html">mHacerTransferencia</a></li>
				<li><a href="class-Minversion.html">Minversion</a></li>
				<li><a href="class-Mlogin.html">Mlogin</a></li>
				<li><a href="class-Mnotificacion.html">Mnotificacion</a></li>
				<li><a href="class-MobtenerListaValores.html">MobtenerListaValores</a></li>
				<li><a href="class-Mprestamo.html">Mprestamo</a></li>
				<li><a href="class-Mprincipal.html">Mprincipal</a></li>
				<li><a href="class-Msolicitud.html">Msolicitud</a></li>
				<li><a href="class-Mtarjeta.html">Mtarjeta</a></li>
				<li><a href="class-Musuarios.html">Musuarios</a></li>
				<li><a href="class-MY_Router.html">MY_Router</a></li>
				<li><a href="class-Notificacion.html">Notificacion</a></li>
				<li><a href="class-ObtenerListaValores.html">ObtenerListaValores</a></li>
				<li><a href="class-Prestamo.html">Prestamo</a></li>
				<li><a href="class-Principal.html">Principal</a></li>
				<li><a href="class-Solicitud.html">Solicitud</a></li>
				<li><a href="class-Tarjeta.html">Tarjeta</a></li>
				<li><a href="class-VerifyLogin.html">VerifyLogin</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-None.html" title="Summary of None"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Format</h1>


	<div class="description">
	
<p>Format class</p>

<p>Help convert between various formats such as XML, JSON, CSV, etc.</p>

	</div>









	<div class="info">
		
		
		
		

				<b>License:</b>
				<a href="http://philsturgeon.co.uk/code/dbad-license">http://philsturgeon.co.uk/code/dbad-license</a><br />
				<b>Author:</b>
				Phil Sturgeon<br />
		<b>Located at</b> <a href="source-class-Format.html#2" title="Go to source code">libraries/Format.php</a><br />
	</div>


	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="factory" id="_factory">

		<td class="attributes"><code>
			 public 
			Factory
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_factory">#</a>
		<code><a href="source-class-Format.html#18" title="Go to source code">factory</a>( <span>mixed <var>$data</var></span>, <span>string <var>$from_type</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
<p>Returns an instance of the Format object.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Returns an instance of the Format object.</p>

<p>echo $this-&gt;format-&gt;factory(array('foo' =&gt; 'bar'))-&gt;to_xml();</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd><code>mixed</code><br>general date to be converted</dd>
					<dt><var>$from_type</var></dt>
					<dd><code>string</code><br>data format the file was provided in</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>Factory</code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-Format.html#34" title="Go to source code">__construct</a>( <span> <var>$data</var> = <span class="php-keyword1">null</span></span>, <span> <var>$from_type</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
<p>Do not use this directly, call factory()</p>

		</div>

		<div class="description detailed hidden">
			
<p>Do not use this directly, call factory()</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="to_array" id="_to_array">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_to_array">#</a>
		<code><a href="source-class-Format.html#60" title="Go to source code">to_array</a>( <span> <var>$data</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="to_xml" id="_to_xml">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_to_xml">#</a>
		<code><a href="source-class-Format.html#87" title="Go to source code">to_xml</a>( <span> <var>$data</var> = <span class="php-keyword1">null</span></span>, <span> <var>$structure</var> = <span class="php-keyword1">null</span></span>, <span> <var>$basenode</var> = <span class="php-quote">'xml'</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="to_html" id="_to_html">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_to_html">#</a>
		<code><a href="source-class-Format.html#145" title="Go to source code">to_html</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="to_csv" id="_to_csv">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_to_csv">#</a>
		<code><a href="source-class-Format.html#176" title="Go to source code">to_csv</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="to_json" id="_to_json">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_to_json">#</a>
		<code><a href="source-class-Format.html#203" title="Go to source code">to_json</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="to_serialized" id="_to_serialized">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_to_serialized">#</a>
		<code><a href="source-class-Format.html#209" title="Go to source code">to_serialized</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="to_php" id="_to_php">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_to_php">#</a>
		<code><a href="source-class-Format.html#215" title="Go to source code">to_php</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="_from_xml" id="__from_xml">

		<td class="attributes"><code>
			 protected 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__from_xml">#</a>
		<code><a href="source-class-Format.html#221" title="Go to source code">_from_xml</a>( <span> <var>$string</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="_from_csv" id="__from_csv">

		<td class="attributes"><code>
			 protected 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__from_csv">#</a>
		<code><a href="source-class-Format.html#228" title="Go to source code">_from_csv</a>( <span> <var>$string</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	</table>







	<table class="summary" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="_data" id="$_data">

		<td class="attributes"><code>
			protected 
			array
		</code></td>

		<td class="name">
				<a href="source-class-Format.html#13" title="Go to source code"><var>$_data</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
		<td class="description"><div>
			<a href="#$_data" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="_from_type" id="$_from_type">

		<td class="attributes"><code>
			protected 
			
		</code></td>

		<td class="name">
				<a href="source-class-Format.html#16" title="Go to source code"><var>$_from_type</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">null</span></code></td>
		<td class="description"><div>
			<a href="#$_from_type" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	</table>



</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen 2.6.1</a>
	</div>
</div>
</div>
</body>
</html>
